package com.demo.decoration;

import com.demo.decoration.decorator.Chocolate;
import com.demo.decoration.decorator.Milk;
import com.demo.decoration.drink.Drink;
import com.demo.decoration.drink.LongBlack;
import sun.rmi.runtime.Log;

public class Client {

    public static void main(String[] args) {

        Drink longBlack = new LongBlack();
        System.out.println(longBlack.getDes());
        System.out.println(longBlack.cost());

        System.out.println("==============");
        longBlack = new Milk(longBlack);
        System.out.println(longBlack.getDes());
        System.out.println(longBlack.cost());

        System.out.println("==============");
        longBlack = new Chocolate(longBlack);
        System.out.println(longBlack.getDes());
        System.out.println(longBlack.cost());

    }
}
